<div class="blazorise-codeblock">
<div class="html"><pre>
<span class="htmlTagDelimiter">&lt;</span><span class="htmlElementName">Button</span> <span class="htmlAttributeName">Color</span><span class="htmlOperator">=</span><span class="quot">&quot;</span><span class="enum">Color</span><span class="enumValue">.Warning</span><span class="quot">&quot;</span> <span class="htmlAttributeName">Clicked</span><span class="htmlOperator">=</span><span class="quot">&quot;</span><span class="sharpVariable"><span class="atSign">&#64;</span>ShowWarningNotification</span><span class="quot">&quot;</span><span class="htmlTagDelimiter">&gt;</span>Show alert!<span class="htmlTagDelimiter">&lt;/</span><span class="htmlElementName">Button</span><span class="htmlTagDelimiter">&gt;</span>
</pre></div>
<div class="csharp"><pre>
<span class="atSign">&#64;</span>code{
    [Inject] INotificationService NotificationService { <span class="keyword">get</span>; <span class="keyword">set</span>; }

    Task ShowWarningNotification()
    {
        <span class="keyword">return</span> NotificationService.Warning( <span class="string">&quot;This is a simple notification message!&quot;</span>, <span class="string">&quot;Hello&quot;</span> );
    }
}
</pre></div>
</div>
